<?php

class Outils_FilAriane {
	
	public static function makeFilAriane($data=array()) {
		$html = "<li><a href=\"". PUBLIC_URL ."index.php\">Accueil</a></li>";
		if (count($data)>0) {
			foreach($data as $k=>$v) {
				if (! preg_match('/&amp;/',$v) ) {
					$v = preg_replace('/&/', "&amp;", $v);
				}
				$html .= "<li>&gt;&gt;</li>";
                $html .= "<li><a href=\"". PUBLIC_URL ."index.php?{$v}\">{$k}</a></li>";
			}
		}
		return $html;
	}
	
	
}


?>